package com.beici.vueblogapp.utils;

import java.util.Date;

/**
 * @auther WaterGhost
 * @date 2021/10/31 22:56
 */
public class encryptionUtils {
    public static String minIoStorageEncryption(String mustValue){
        //  使用该算法计算出minIo图片存储格式
        return mustValue+new Date().getTime();
    }

    public static Integer pageAll(double d){
        String page = String.valueOf(d);
        if (page.length()>1 && page.indexOf("0")!=2){
            String substring = page.substring(0,1);
            System.out.println(substring);
            return Integer.valueOf(substring)+1;
        }
        int number = (int)d;
        return number;
    }
}
